package openadmin.controller.gwt.beaninfo;

import java.io.Serializable;



/**
 * <desc> Detail Choice: The definition to display details, collections or sets forms that can be called from a parent class
 * 
 * In order to simplify programming, all the attributes have been declared "public"
 * We need information to restrict the number of elements of the detail so that we can only show the child elements that match some attribute values with their parent
 * 
 * The model should contain information of all the Detail Choices a user can see.
 * @author edu
 *
 */
public class DetailChoice implements Serializable{
	
	private static final long serialVersionUID = 1L; // To avoid complier warnings
	
	public String detailDescription;			// i18n description of the detail, collection, set etc
	public String className;					// Class Name of the detail, collection, set etc.
	public String view;							// View defined in the annotation of the class to see the tabular view
	
	public String condition;					// Condition to restrict the number of records (to use a where clause)
	public String[] parentAttributes;			// Parent attributes to make a restriction of child.attribute[0]=parent.attribute[0] and child.attribute[i]=parent.attribute[i] and ..
	
	public String[] childAttributes;			// Child attributes. @see las comment

	
}